import request from '@/utils/request'

// 查询預約事項明細列表
export function listReservationItem(query) {
  return request({
    url: '/biz/reservationItem/list',
    method: 'get',
    params: query
  })
}

// 查询預約事項明細详细
export function getReservationItem(id) {
  return request({
    url: '/biz/reservationItem/' + id,
    method: 'get'
  })
}

// 新增預約事項明細
export function addReservationItem(data) {
  return request({
    url: '/biz/reservationItem',
    method: 'post',
    data: data
  })
}

// 修改預約事項明細
export function updateReservationItem(data) {
  return request({
    url: '/biz/reservationItem',
    method: 'put',
    data: data
  })
}

// 删除預約事項明細
export function delReservationItem(id) {
  return request({
    url: '/biz/reservationItem/' + id,
    method: 'delete'
  })
}
